const express = require("express");
const router = express.Router();
const loginService = require("./service/LoginServiceImpl");

// 登录获取token
router.post("/doLogin", async function (req, res, next) {
  loginService.doLogin(req, res, next);
});
// 刷新token
router.post("/refreshToken", async function (req, res, next) {
  loginService.refreshToken(req, res, next);
});
// 微信登录
router.post("/doWxLogin", async function (req, res, next) {
  loginService.doWxLogin(req, res, next);
});

module.exports = router;
